package com.jumei.flume.processor.rules;

import com.jumei.flume.bo.SensorMessage;

/**
 * 规则解析
 * @author admin
 *
 */
public abstract class TypeResolver {
	
	public abstract Type resolve(SensorMessage record);
	
	public boolean filter(SensorMessage record) {
		return Boolean.TRUE;
	}
	
	/**
	 * 排序使用:
	 * 
	 * 负数最高
	 * 整数越低
	 * 
	 * @return
	 */
	public int rank() {
		return 0;
	}
}
